<?php
/*
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

namespace PHPCan\Data\Databases;

defined('ANS') or die();

interface Idatabase {
    public function connect ();
    public function setConnection ($connection = '');
    public function getConnection ($connection = '');
    public function connected ();

    public function queryRegister ($num = 0);
    public function query ($query);
    public function result ();
    public function queryResult ($q);

    public function select ($select);
    public function insert ($data);
    public function replace ($data);
    public function update ($data);
    public function delete ($data);

    public function lastId ();
    public function affectedRows ();
    public function escapeString ($values);

    public function getSchemaDifferences ($tables);
}
